﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TestMaterial : MonoBehaviour {

    public Material material;
    public Texture front;
    public Texture back;
    public Texture left;
    public Texture right;
    public Texture up;
    public Texture down;

    private void Start()
    {
        Material sixMaterial = VIPMaterialUtil.SixSidedMaterial(material, front, back, left, right, up, down);
        //将6面材质赋值给天空盒子
        RenderSettings.skybox = sixMaterial;
    }

}
